package com._4pd.demo.formal.watcher;

import com._4pd.demo.formal.K8sClient;
import io.fabric8.kubernetes.api.model.GenericKubernetesResource;
import io.fabric8.kubernetes.client.WatcherException;

import java.io.IOException;

public class ResourceWatcher extends StatusWatcher<GenericKubernetesResource> {
    public ResourceWatcher(K8sClient client) throws IOException {
        super(client);
    }

    @Override
    void AddedAction(GenericKubernetesResource resource) {
        System.out.println("AddedAction");
    }

    @Override
    void ModifiedAction(GenericKubernetesResource resource) {
        System.out.println("ModifiedAction");
    }

    @Override
    void DeletedAction(GenericKubernetesResource resource) {
        System.out.println("DeletedAction");
    }

    @Override
    void ErrorAction(GenericKubernetesResource resource) {
        System.out.println("ErrorAction");
    }

    @Override
    void BookmarkAction(GenericKubernetesResource resource) {
        System.out.println("BookmarkAction");
    }

    @Override
    public void onClose(WatcherException cause) {

    }
}
